Other Global Variables
The following global variables are available globally.
-
Key used for accessing a
Bool
as to whether the reroute occurced because a faster route was found.Declaration
Swift
public let RouteControllerDidFindFasterRouteKey = MBRouteControllerDidFindFasterRouteKey
-
Remaing distance on a motorway at which the
AlertLevel.high
AlertLevel
will be given. This overridesRouteControllerHighAlertInterval
only when the current step is a motorway. Default value is a half mile.Declaration
Swift
public var RouteControllerMotorwayHighAlertDistance: CLLocationDistance = 0.25 * milesToMeters
-
Remaing distance on a motorway at which the
AlertLevel.medium
AlertLevel
will be given. This overridesRouteControllerMediumAlertInterval
only when the current step is a motorway. Defauly value is 2 miles.Declaration
Swift
public var RouteControllerMotorwayMediumAlertDistance: CLLocationDistance = 2 * milesToMeters
-
:nodoc This is used internally for debugging metrics
Declaration
Swift
public var NavigationMetricsDebugLoggingEnabled = "MBNavigationMetricsDebugLoggingEnabled"
-
The mimimum speed value before the user is snapped to the route. This is used to overcome inaccurate course values when a user’s speed is low.
Declaration
Swift
public var RouteControllerMinimumSpeedThresholdForSnappingUserToRoute: CLLocationSpeed = 2